<template>
 <div>
     {{logining}}
 </div>
</template>

<script>
export default {
 data() {
  return {
      token:'',
      logining:'登陆中----'
  }
 },
 components: {

 },
 mounted() {
     this.token = this.$route.query['code']; //获取token
     this.axios({   //axios请求 将token传到后端
         url:'http://127.0.0.1:8000/weibo/',
         method:'post',
         data:{
             'token':this.token
         }
     }).then(res=>{
         if(res.data.code==200){
             this.logining='登陆成功'
         }
     })

 },
}
</script>
